package com.jpcc.vw.onlineRadio.activity;

import android.content.Intent;
import android.os.Handler;
import android.os.Message;

import com.jpcc.vw.onlineRadio.R;
import com.jpcc.vw.onlineRadio.base.BaseActivity;
import com.jpcc.vw.onlineRadio.model.bean.Splash;
import com.orhanobut.logger.Logger;

public class SplashActivity extends BaseActivity {


    private Handler delayHandler=new Handler(){
        @Override
        public void handleMessage(Message msg) {
            super.handleMessage(msg);
            Logger.i("SplashActivity handler");
            Intent intent=new Intent(SplashActivity.this,MainActivity.class);
            startActivity(intent);
            SplashActivity.this.finish();
        }
    };


    @Override
    public int getLayoutId() {
        return R.layout.activity_splash;
    }

    @Override
    public void setupView() {
        delayHandler.sendEmptyMessageDelayed(0x01,2000);
    }
}
